package ex.com.jm.food.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
/**
 * 公告实体层
 * @author Administrator
 *
 */
@Entity
@Table(name="jm_notice")
public class Notices implements Serializable {

	
	private static final long serialVersionUID = 1;
	@Id
	@GenericGenerator(name="notice_id",strategy="uuid")
	@GeneratedValue(generator="notice_id")
	@Column(name="notice_id",nullable=false,unique=true,length=32)
	private String noticeId;//公告主键
	@Column(name="notice_title",nullable=false,unique=true,length=32)
	private String noticeTitle;//公告标题
	@Column(name="notice_content",length=10000)
	private String noticeContent;//公告内容
	@Column(name="com_id",length=32)
	private String comId;
	@Column(name="created",nullable=false,length=32)
	private String created;//公告开始时间
	@Column(name="status",nullable=false,length=2)
	private Integer status;//(0:停用;1:启用)
	@Column(name="notice_type",nullable=false,length=2)
	private Integer noticeType;//0:全站；1：企业个人公告
	public String getNoticeId() {
		return noticeId;
	}
	public void setNoticeId(String noticeId) {
		this.noticeId = noticeId;
	}
	public String getNoticeTitle() {
		return noticeTitle;
	}
	public void setNoticeTitle(String noticeTitle) {
		this.noticeTitle = noticeTitle;
	}
	public String getNoticeContent() {
		return noticeContent;
	}
	public void setNoticeContent(String noticeContent) {
		this.noticeContent = noticeContent;
	}
	public String getComId() {
		return comId;
	}
	public void setComId(String comId) {
		this.comId = comId;
	}
	public String getCreated() {
		return created;
	}
	public void setCreated(String created) {
		this.created = created;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getNoticeType() {
		return noticeType;
	}
	public void setNoticeType(Integer noticeType) {
		this.noticeType = noticeType;
	}
	
}
